package com.wmh.baseservice.operationaid.pojo.vo.store;

import com.wmh.baseservice.operationaid.entity.PddStoreData;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @author 牛威龙
 * @date 2023/08/03 14:51
 * 数据指数字段
 **/
@Data
@Accessors(chain = true)
@ApiModel(value = "拼多多店铺指数字段封装")
public class PddStoreExponentField {

    /**
     * 店铺总销售额
     */
    private BigDecimal totalStoreSales;

    /**
     * 刷单金额
     */
    private BigDecimal brushOrdersAmount;

    /**
     * 退款金额
     */
    private BigDecimal refundAmount;

    /**
     * 订单总数
     */
    private Integer totalOrders;

    /**
     * 补单订单数
     */
    private Integer supplementaryOrders;

    /**
     * 免费送
     */
    private Integer freeDelivery;

    /**
     * 访客
     */
    private Integer visitor;

    /**
     * 转化
     转化率
     */
    private BigDecimal conversionRate;

    /**
     * 补单佣金加快递
     */
    private BigDecimal supplementaryCommissionExpress;

    /**
     * 多多搜索
     */
    private BigDecimal duoduoSearch;

    /**
     * 搜索成交
     */
    private BigDecimal searchDeal;

    /**
     * 多多场景
     */
    private BigDecimal duoduoScene;

    /**
     * 场景成交
     */
    private BigDecimal sceneDeal;

    /**
     * 明星店铺推广
     */
    private BigDecimal starStorePromotion;

    /**
     * 明星店铺成交
     */
    private BigDecimal starStoreDeal;

    /**
     * 全站推广
     */
    private BigDecimal websitePromotion;

    /**
     * 全站推广成交
     */
    private BigDecimal websitePromotionDeal;

    /**
     * 领航员综合分行业排名
     */
    private BigDecimal comprehensiveScoreIndustryRanking;

    /**
     * 求助率
     */
    private BigDecimal helpRate;

    public static PddStoreExponentField builder(PddStoreData p){
        PddStoreExponentField pddStoreExponentField = new PddStoreExponentField();
        pddStoreExponentField.setTotalStoreSales(p.getTotalStoreSales());
        pddStoreExponentField.setBrushOrdersAmount(p.getBrushOrdersAmount());
        pddStoreExponentField.setRefundAmount(p.getRefundAmount());
        pddStoreExponentField.setTotalOrders(p.getTotalOrders());
        pddStoreExponentField.setSupplementaryOrders(p.getSupplementaryOrders());
        pddStoreExponentField.setFreeDelivery(p.getFreeDelivery());
        pddStoreExponentField.setVisitor(p.getVisitor());
        pddStoreExponentField.setConversionRate(p.getConversionRate());
        pddStoreExponentField.setSupplementaryCommissionExpress(p.getSupplementaryCommissionExpress());
        pddStoreExponentField.setDuoduoSearch(p.getDuoduoSearch());
        pddStoreExponentField.setSearchDeal(p.getSearchDeal());
        pddStoreExponentField.setDuoduoScene(p.getDuoduoScene());
        pddStoreExponentField.setSceneDeal(p.getSceneDeal());
        pddStoreExponentField.setStarStorePromotion(p.getStarStorePromotion());
        pddStoreExponentField.setStarStoreDeal(p.getStarStoreDeal());
        pddStoreExponentField.setWebsitePromotion(p.getWebsitePromotion());
        pddStoreExponentField.setWebsitePromotionDeal(p.getWebsitePromotionDeal());
        pddStoreExponentField.setComprehensiveScoreIndustryRanking(p.getComprehensiveScoreIndustryRanking());
        pddStoreExponentField.setHelpRate(p.getHelpRate());
        return pddStoreExponentField;
    }

}
